import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './routes'


const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [

    ...routes,
    {
      path: '/',
      redirect: '/home',
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login/login.vue')
    },
    {
      path: '/datascreen',
      name: 'datascreen',
      component: () => import('../views/dataScreen/Index.vue')
    },
    {
      path:'/:pathMatch(.*)*',
      component:()=>import('@/views/notFount/Index.vue')
    }
  ]
})

export default router
